#include <stdio.h>
#include <stdlib.h>

int main()
{
    char ch1,ch2,ch3;
    scanf("%c%c%c",&ch1,&ch2,&ch3);
    printf("%d",ch1+ch3);
    return 0;
}
